// Copyright  2004-2008 Backplane Ltd.
//
// This file is part of Ubiquity formsPlayer
//
// Ubiquity formsPlayer is free software; you can redistribute it and/or modify it
// under the terms of the GNU General Public License as published by the
// Free Software Foundation; either version 3 of the License, or (at your
// option) any later version.
//
// Ubiquity formsPlayer is distributed in the hope that it will be useful, but WITHOUT
// ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
// FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
// more details.
//
// You should have received a copy of the GNU General Public License
// along with Ubiquity formsPlayer If not, see <http://www.gnu.org/licenses/>.
//	
//
//   Purpose: declaration of ActivateBodyELement.
//   $Id$
#pragma once
struct IHTMLDocument2; 
//<summary>
// Sets the body element of a given document to be the active element.
//	Used in cases where the activeElement becomes invisible, and IE
//	has forgotten to do anything about it.
//	If the activeElement is an input box, IE's forgetfulness leads to 
//	a stray caret sitting in the middle of nowhere on the document.
//</summary>
//<param name="pDoc">
//	Pointer to the document for which this service is required.
//</param>
//<returns>
//	S_OK if successful<b/r>
//	E_INVALIDARG if pDoc is NULL.<br/>
//	other error values passed through from MSHMTL in attempting to retrieve the body, and set it as active
//</returns>
namespace xport
{
	HRESULT ActivateBodyElement(IHTMLDocument2 * pDoc);
}